package com.imooc.files.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author gjw
 * @since 2020/9/26 20:39
 */
public interface UploaderService {

    public String uploadFdfs(MultipartFile file, String fileExtName) throws IOException;

    /**
     * 使用OSS上传文件
     */
    public String uploadOSS(MultipartFile file,
                            String userId,
                            String fileExtName) throws Exception;
}
